Make the master fd belonging to the pty pair non-blocking. Writes were blocking
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Tue, 6 Dec 2005 16:40:43 +0000 (16:40 +0000)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Tue, 6 Dec 2005 16:40:43 +0000 (16:40 +0000)
commite50a8e993968af639b8941e3d6c18cd7154b5500
tree3b4042e0fd4cac4f9180a334761d5f70cde5b6bd
parent383dbc16f4d92cf8430ccd82f2e61527d17ca299
Make the master fd belonging to the pty pair non-blocking.  Writes were blocking
if the console client disconnected before all the data had been written to the
pty, even though the select call had indicated that the fd was previously
writable.  Reads have been observed exhibiting similar behaviour too.

Closes bug #380.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/console/daemon/io.c